package com.jinzecloud.reportapproval.execption;

public enum  Code {

    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VAILD_EXCEPTION(10001,"参数格式校验失败"),
    NullPOINTER_EXCEPTION(10002,"空指针异常"),
    ILLEGALSTATE_EXCEPTION(10003,"找不到文件"),
    CODEPASTDUE_EXCEPTION(10005,"验证码已过期"),
    USERNAMEANDPASSWORD_EXCEPTION(10006,"用户名或密码错误"),
    TOKENPASTDUE_EXCEPTION(401,"登录已过期，请重新登录"),
    CODE_EXCEPTION(10008,"验证码错误"),
    NUFINDUSERNAME_EXCEPTION(10009,"用户不存在"),
    CONNECT_EXCEPTION(100010,"中间件连接错误"),
    DATACONNECT_EXCEPTION(10004,"数据库连接失败"),
    USER_ALREADY_EXISTS(100011,"用户已存在"),
    PATH_NOT_EXISTS(100012,"路径不存在");

    private int code;
    private String msg;

    Code(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
